-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pkg/ottl] added flag path #34736
base: main
Are you sure you want to change the base?
[pkg/ottl] added flag path #34736
Conversation
|
@@ -127,6 +127,8 @@ func SpanPathGetSetter[K SpanContext](path ottl.Path[K]) (ottl.GetSetter[K], err | |||
} | |||
} | |||
return accessStatus[K](), nil | |||
case "flags": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as this is a new accessible property added to the span context
, can you please also add an entry in the readme?
@@ -585,3 +587,17 @@ func accessStatusMessage[K SpanContext]() ottl.StandardGetSetter[K] { | |||
}, | |||
} | |||
} | |||
|
|||
func accessFlags[K SpanContext]() ottl.StandardGetSetter[K] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please also add a test case for accessing flags to the unit test of the SpanPathGetSetter
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Description:
Cannot access flags from span context. Making a statement that uses flags will fail.
Fixes the bug by adding the
flags
path.Link to tracking Issue:
Closes #34739
Testing:
None
Documentation:
N/A